#include"Stack.h"


void Stack::StackInit(int defaultCapacity)
{
	a = (int*)malloc(sizeof(int));
	if (a == nullptr)
	{
		perror("malloc fail");
	}
	top = 0;
	capacity = defaultCapacity;
}